class Animal(object):
    age = 10
    def __init__(self,name):
        self.name = name

    def eat(self):
        print(f"{self.name}正在吃东西")

    def play(self):
        print(f"{self.name}正在玩耍")

    def sleep(self):
        print(f"{self.name}正在睡觉")

class Dog(Animal):
    def bark(self):
        print(f"{self.name}会汪汪叫")

class Pig(Animal):
    def buu(self):
        print(f"小猪会咘咘叫")

dog = Dog("腊肠狗")
print(dog)
dog.eat()
dog.bark()